import { Component } from '@angular/core';    

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})

export class AppComponent {  
    
    active:number = 0;
    activeChange($event) {
        this.active = $event;
    }

    myConfig:any = {
        isSwitch : false,
        auto : false,
        size : {
          width : '100%',
          height : '500px'
        }
    }
}